github.com/andybalholm/brotli/matchfinder.absoluteMatch.Start (field)
109 uses
github.com/andybalholm/brotli/matchfinder (current package)
bargain1.go#L88: if m.Start > historyLen {
bargain1.go#L89: startCost = arrivals[m.Start-historyLen-1].cost
bargain1.go#L94: distanceCost = float32(bits.Len(uint(m.Start - m.Match)))
bargain1.go#L97: for j := m.End; j >= m.Start+3; j-- {
bargain1.go#L103: length: uint32(j - m.Start),
bargain1.go#L104: distance: uint32(m.Start - m.Match),
bargain1.go#L169: delta := i - m.Start
bargain1.go#L175: m.Start += delta
bargain1.go#L179: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-4)
bargain2.go#L99: if m.Start > historyLen {
bargain2.go#L100: startCost = arrivals[m.Start-historyLen-1].cost
bargain2.go#L105: distanceCost = float32(bits.Len(uint(m.Start - m.Match)))
bargain2.go#L108: for j := m.End; j >= m.Start+3; j-- {
bargain2.go#L114: length: uint32(j - m.Start),
bargain2.go#L115: distance: uint32(m.Start - m.Match),
bargain2.go#L185: delta := i - m.Start
bargain2.go#L191: m.Start += delta
bargain2.go#L195: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-6)
bargain2.go#L201: delta := i - m.Start
bargain2.go#L207: m.Start += delta
bargain2.go#L211: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-6)
bargain3.go#L105: if m.Start > historyLen {
bargain3.go#L106: startCost = arrivals[m.Start-historyLen-1].cost
bargain3.go#L111: distanceCost = float32(bits.Len(uint(m.Start - m.Match)))
bargain3.go#L114: for j := m.End; j >= m.Start+3; j-- {
bargain3.go#L120: length: uint32(j - m.Start),
bargain3.go#L121: distance: uint32(m.Start - m.Match),
bargain3.go#L195: delta := i - m.Start
bargain3.go#L201: m.Start += delta
bargain3.go#L205: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-6)
bargain3.go#L211: delta := i - m.Start
bargain3.go#L217: m.Start += delta
bargain3.go#L221: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-6)
bargain3.go#L227: delta := i - m.Start
bargain3.go#L233: m.Start += delta
bargain3.go#L237: nextOverlapSearch = max(nextOverlapSearch, m.Start+1, m.End-6)
emitter.go#L7: Start int
emitter.go#L29: Unmatched: m.Start - e.NextEmit,
emitter.go#L30: Length: m.End - m.Start,
emitter.go#L31: Distance: m.Start - m.Match,
m4.go#L60: return (m.End-m.Start)*256 + (bits.LeadingZeros32(uint32(m.Start-m.Match))-32)*q.DistanceBitCost
m4.go#L117: if matches[1].End > matches[0].Start {
m4.go#L118: matches[1].End = matches[0].Start
m4.go#L120: if matches[1].End-matches[1].Start >= q.MinLength && q.score(matches[1]) > 0 {
m4.go#L134: if m.End-m.Start >= q.MinLength {
m4.go#L161: if m.End-m.Start > q.MinLength && q.score(m) > 0 {
m4.go#L177: if m.End-m.Start > q.MinLength && q.score(m) > q.score(currentMatch) {
m4.go#L183: if currentMatch.End-currentMatch.Start < q.MinLength {
m4.go#L190: if currentMatch.Start <= matches[1].End {
m4.go#L213: case matches[0].Start < matches[2].End:
m4.go#L221: case matches[0].Start < matches[2].End+q.MinLength:
m4.go#L233: if matches[2].End > matches[1].Start {
m4.go#L234: matches[2].End = matches[1].Start
m4.go#L235: if q.ChainLength > 0 && matches[2].End-matches[2].Start >= q.MinLength {
m4.go#L238: pos := matches[2].Start
m4.go#L248: if bytes.Equal(src[matches[2].Start:matches[2].End], src[pos:pos+matches[2].End-matches[2].Start]) {
m4.go#L255: if matches[2].End-matches[2].Start >= q.MinLength && q.score(matches[2]) > 0 {
m4.go#L264: if matches[1].End > matches[0].Start {
m4.go#L265: matches[1].End = matches[0].Start
m4.go#L267: if matches[1].End-matches[1].Start >= q.MinLength && q.score(matches[1]) > 0 {
m4.go#L335: Start: start,
pathfinder.go#L158: prevDistance := prevMatch.Start - prevMatch.Match
pathfinder.go#L161: if m.End-m.Start > q.MinLength {
pathfinder.go#L169: m := extendMatch2(src, i, candidate, max(historyLen, prevMatch.Start))
pathfinder.go#L170: if m.End-m.Start > q.MinLength {
pathfinder.go#L186: m := extendMatch2(src, i, candidate, max(historyLen, prevMatch.Start))
pathfinder.go#L187: if m.End-m.Start > q.MinLength && m.End-m.Start > currentMatch.End-currentMatch.Start {
pathfinder.go#L194: if i < prevMatch.End && currentMatch.End-currentMatch.Start <= prevMatch.End-prevMatch.Start {
pathfinder.go#L215: slices.SortFunc(foundMatches, func(a, b absoluteMatch) int { return a.Start - b.Start })
pathfinder.go#L243: for matchIndex < len(foundMatches) && foundMatches[matchIndex].Start == i {
pathfinder.go#L250: if m.Start-m.Match != prevDistance {
pathfinder.go#L251: matchCost += float32(bits.Len(uint(m.Start - m.Match)))
pathfinder.go#L253: for j := m.Start + q.MinLength; j <= m.End; j++ {
pathfinder.go#L255: if j-m.Start < 6 {
pathfinder.go#L258: adjustedCost += float32(6-(j-m.Start)) * 2
pathfinder.go#L263: length: uint32(j - m.Start),
pathfinder.go#L264: distance: uint32(m.Start - m.Match),
pathfinder.go#L273: if unmatched == 0 && pending.Start != i && pending.End >= i+q.MinLength &&
pathfinder.go#L274: !(arrivedHere.length != 0 && arrivedHere.distance == uint32(pending.Start-pending.Match)) {
pathfinder.go#L275: matchCost := baseMatchCost + float32(bits.Len(uint(pending.Start-pending.Match)))
pathfinder.go#L287: distance: uint32(pending.Start - pending.Match),
trio.go#L186: s = int32(max(matches[0].Start+2, matches[0].End-10))
trio.go#L233: if newMatch.End-newMatch.Start <= matches[0].End-matches[0].Start {
trio.go#L251: case matches[0].Start < matches[2].End:
trio.go#L259: case matches[0].Start < matches[2].End+4:
trio.go#L271: if matches[2].End > matches[1].Start {
trio.go#L272: matches[2].End = matches[1].Start
trio.go#L274: if matches[2].End-matches[2].Start >= 4 {
trio.go#L295: if matches[1].End > matches[0].Start {
trio.go#L296: matches[1].End = matches[0].Start
trio.go#L298: if matches[1].End-matches[1].Start >= 4 {
zm.go#L168: s = int32(max(matches[0].Start+2, matches[0].End-6))
zm.go#L211: if newMatch.End-newMatch.Start <= matches[0].End-matches[0].Start {
zm.go#L229: case matches[0].Start < matches[2].End:
zm.go#L237: case matches[0].Start < matches[2].End+4:
zm.go#L249: if matches[2].End > matches[1].Start {
zm.go#L250: matches[2].End = matches[1].Start
zm.go#L252: if matches[2].End-matches[2].Start >= 4 {
zm.go#L274: if matches[1].End > matches[0].Start {
zm.go#L275: matches[1].End = matches[0].Start
zm.go#L277: if matches[1].End-matches[1].Start >= 4 {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |